<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>delete-null</title>
</head>

<body>
  <!-- <textarea id="input-block" >"{ a: null, b: null, c: { d: null, e: ", f: { g: {} } } }"</textarea>
  <button>处理</button>
  <div>处理结果：<p id="result"></p>
  </div> -->
  <script type="module">

    import("./delete-null.js").then((res) => {
      const { deleteNull } = res;
      const obj = { a: null, b: null, c: { d: null, e: "", f: { g: {} } } }
      console.log("before obj == ", JSON.stringify(obj, null, "\t"))
      deleteNull(obj);
      console.log("after obj == ", obj)
    })
  </script>
</body>

</html>